//
// Created by chen on 25-4-24.
//

#ifndef LED_H
#define LED_H

#include "main.h"
/* 定义固定长度 */


class Led {
public:
    // 获取单例实例
    static Led& instance();

    Led();

    void MX_GPIO_Init(void);

    void ledon(void);

    void ledoff(void);

};


#define FIXED_LENGTH 5
static uint8_t rxData[FIXED_LENGTH];
static uint8_t rxCount = 0;
extern "C" void TIM1_UP_IRQHandler(void);

#endif //LED_H
